package ooday02;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/2/22 10:12
 */
public class Teacher extends Person{
    /**定义变量*/
    double salary;
    public Teacher(String name,int age,String address,double salary) {
        super(name,age,address);
        this.salary = salary;
    }
    /** 定义方法*/
    void teach(){
        System.out.println(name+"正在上课..."+"我的工资是"+salary);
    }
}
